#include <string>
#include <map>
#include <thread>

using namespace std;

class WebCamera {
public:
	WebCamera();
	~WebCamera();

	bool open(string id, string url);
	bool close(string id);
private:
	map<string, bool> states;
	map<string, thread> cams;
};